import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var HzhbxxsV4dmViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(HzhbxxsV4dmViewmodelForm, _super);
    function HzhbxxsV4dmViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantName_ae1f5b58_c28h',
            name: "{{merchantName_ae1f5b58_c28h}}",
            binding: 'merchantName',
            updateOn: 'blur',
            defaultI18nValue: '商户名称',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "merchantName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantCode_13993795_hl5j',
            name: "{{merchantCode_13993795_hl5j}}",
            binding: 'merchantCode',
            updateOn: 'blur',
            defaultI18nValue: '商户编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "merchantCode", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'companyType_21694f08_o1ff',
            name: "{{companyType_21694f08_o1ff}}",
            binding: 'companyType',
            updateOn: 'blur',
            defaultI18nValue: '企业类型',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "companyType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantType_3be4e233_ldn9',
            name: "{{merchantType_3be4e233_ldn9}}",
            binding: 'merchantType',
            updateOn: 'blur',
            defaultI18nValue: '商户类型',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "merchantType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'realName_6826be36_1rxr',
            name: "{{realName_6826be36_1rxr}}",
            binding: 'realName',
            updateOn: 'blur',
            defaultI18nValue: '真实姓名',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "realName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fullName_64a2ea29_eyqm',
            name: "{{fullName_64a2ea29_eyqm}}",
            binding: 'fullName',
            updateOn: 'blur',
            defaultI18nValue: '企业全称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "fullName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'businessLicense_2b4ffe5d_pqq5',
            name: "{{businessLicense_2b4ffe5d_pqq5}}",
            binding: 'businessLicense',
            updateOn: 'blur',
            defaultI18nValue: '营业执照编码',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "businessLicense", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'address_45db5c58_7l1q',
            name: "{{address_45db5c58_7l1q}}",
            binding: 'address',
            updateOn: 'blur',
            defaultI18nValue: '商户地址',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "address", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'email_df58773a_cecp',
            name: "{{email_df58773a_cecp}}",
            binding: 'email',
            updateOn: 'blur',
            defaultI18nValue: '邮箱',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "email", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'telephone_b5ad4b6a_4hcw',
            name: "{{telephone_b5ad4b6a_4hcw}}",
            binding: 'telephone',
            updateOn: 'blur',
            defaultI18nValue: '联系电话',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "telephone", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'adminstrator_8c0cccc8_3jam',
            name: "{{adminstrator_8c0cccc8_3jam}}",
            binding: 'adminstrator',
            updateOn: 'blur',
            defaultI18nValue: '管理员',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "adminstrator", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_24aa9ae4_d3rs',
            name: "{{remark_24aa9ae4_d3rs}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], HzhbxxsV4dmViewmodelForm.prototype, "remark", void 0);
    HzhbxxsV4dmViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '合作伙伴信息',
            enableValidate: true
        }),
        Injectable()
    ], HzhbxxsV4dmViewmodelForm);
    return HzhbxxsV4dmViewmodelForm;
}(Form));
export { HzhbxxsV4dmViewmodelForm };
